import axios from 'axios'
import { BaseService } from './BaseService'

export class TagsService extends BaseService {
    // get
    // 获取标签下的图片
    public async getTagPictures(tagId: string, p: string, n: string) {
        const page = '?p=' + p + '&n=' + n
        const url = this.tagsBaseUrl + '/' + tagId + '/pictures/' + page
        return await axios.get(url)
    }

    // post
    // 创建标签
    public async createTags(date: any) {
        const url = this.tagsBaseUrl
        return await axios.post(url, date)
    }
}
